<!DOCTYPE html>
<html>
<head>
    <title>穆</title>
    <meta content="穆" name="description"/>
    <meta content="穆" name="keywords">

    <%- include('../head') %>
    <link rel="stylesheet" type="text/css" href="/lib/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/lib/css/style.css">
    <link rel="stylesheet" href="/stylesheets/pc/index.css">
    <script type="text/javascript" src="/javascripts/pc/index.js"></script>
</head>
<body>
<%- include('../keep-sso',{}) %>
<%- include('../../public/pcCom/header/header',{}) %>
<h1>人物关系表</h1>

<div class="operate">
    <span class="btn print">打印</span>
    <span class="btn tools">工具栏切换</span>
    <span class="btn open">展开一级</span>
    <span class="btn">添加节点<a href="/admin/add/<%=  data[0]._id %>/<%=  data[0].name %>" target="_blank"></a></span>
</div>
<div class="tree well">
    <ul id="rootUL">
        <% for(var i  = 0; i < data.length; i++){
            var item = data[i] || {};
        %>
        <li data-id="<%= item._id %>" data-childs="<%= JSON.stringify(item.child) %>" class="<%= item.child.length > 0 ? 'parent_li':''  %>"><span title="<%= item.child.length > 0 ? '展开':''  %>"><i class="<%= item.child.length > 0 ? 'icon-plus-sign':''  %>"></i> <%= item.name %></span>
            <i class="edit icon-pencil changeF" title="修改父节点"  data-id="<%= item._id %>" data-parent="<%= item.parent %>"></i>
            <i class="edit icon-remove changeR" title="删除"  data-item="<%= JSON.stringify(item) %>" ></i>
            <a class="edit icon-plus-sign"  href="/admin/add/<%= item._id %>/<%= item.name %>"   target="_blank" title="添加子"></a>
            <a class="edit icon-eye-open" href="/admin/info/<%= item._id %>"   target="_blank" title="查看详细信息"></a>

        </li>
        <%}%>
    </ul>
</div>

<div class="wrap hide">
    <div class="box">
        <h3>填入父节点id</h3>
        <div class="tip">查看详情里面有id</div>
        <input type="text" class="pid">
        <p>
            <span class="btn cancel">取消</span>
            <span class="btn confirm">确定</span>
        </p>
    </div>
</div>


<%- include('../../public/pcCom/footer/footer',{}) %>
</body>
</html>
